﻿using MediatR;
using Swork03_28.Domain.TraceableInfos;

namespace Swork03_28.Api.Application.Commands.DeepCommand
{
    /// <summary>
    /// 深加工公司添加
    /// </summary>
    public class DeepFirmCreateCommand : IRequest<int>
    {
        /// <summary>
        /// 主键编号
        /// </summary>
        public int companyId { get; set; }
        /// <summary>
        /// 批次号
        /// </summary>
        public string? batchCode { get; set; }
        /// <summary>
        /// 公司名称
        /// </summary>
        public string? companyName { get; set; }
        /// <summary>
        /// 生产许可证号
        /// </summary>
        public string? licenseNumber { get; set; }
        /// <summary>
        /// 公司类型
        /// </summary>
        public int businessCode { get; set; }
        /// <summary>
        /// 公司
        /// </summary>
        public string? companyImage { get; set; }
    }

    /// <summary>
    /// 查询公司信息
    /// </summary>
    public class DeepFirmSelectCommand : IRequest<FirmInfo>
    {
        /// <summary>
        /// 批次号
        /// </summary>
        public string? batchCode { set; get; }
    }

    /// <summary>
    /// 添加公司图片
    /// </summary>
    public class DeepFirmImgCreateCommand : IRequest<int>
    {
        public string? batchCode { get; set; }

        public string? imgUrls { get; set; }
    }

    public class DeepFirmImgDeleteCommand:IRequest<int>
    {
        public string? batchCode { get; set; }

        public string? imgUrls { get; set; }
    }
}
